package cn.gzsxt.music.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import cn.gzsxt.music.query.LableQueryObject;

@Mapper
public interface LableMapper {

	@Select("select * from mc_label")
	List<Map<String, Object>> getAllLables();
	
	@SelectProvider(type = LableProvider.class, method = "getAllLabelTotal")
	Long getAllLabelTotal(LableQueryObject qo);

	@SelectProvider(type = LableProvider.class, method = "getAllLabelList")
	List<Map<String, Object>> getAllLabelList(LableQueryObject qo);

	@SelectProvider(type = LableProvider.class, method = "getAllSongTotal")
	Long selectSongTotalByQo(LableQueryObject qo);

	@SelectProvider(type = LableProvider.class, method = "getAllSongList")
	List<Map<String, Object>> selectSongByCondition(LableQueryObject qo);

}
